<%@ page import="com.edeweiss.community.domain.Community" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
		 pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>


<head>
<title>社团首页</title>
	<link rel="stylesheet" type="text/css"  href="../css/bootstrap.css">
	<link rel="stylesheet" type="text/css" href="../css/style.css">
	<link rel="stylesheet" type="text/css" href="themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="themes/icon.css">
	<script src="js/jquery.min.js"></script>
	<script src="js/jquery.easyui.min.js"></script>

<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<link rel="stylesheet" href="./css/bootstrap.min.css"  type="text/css" media="all">
<link rel="stylesheet" href="./css/communityIndex.css" type="text/css" media="all">
</head>
<script type="text/javascript" src="./js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<nav id="menu" class="navbar navbar-default navbar-fixed-top">
	<div class="container">

		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
			<a class="navbar-brand page-scroll" href="index.jsp">西安文理学院社团管理系统</a>
		</div>
		<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
			<ul class="nav navbar-nav navbar-right">
				<li><a href="index.jsp">首页</a></li>
				<li><a href="${pageContext.request.contextPath}/CommunityServlet?method=findCommunityCategory">社团</a></li>
				<li><a href="${pageContext.request.contextPath}/IndexServlet?method=findHonorWall">荣誉墙</a></li>
				<li><a href="${pageContext.request.contextPath}/IndexServlet?method=findHallOfFame">名人堂</a></li>
				<li><a href="${pageContext.request.contextPath}/Report.jsp">匿名投诉</a></li>
				<li><a href="${pageContext.request.contextPath}/loginForm.jsp">登录</a></li>
				<li><a href="${pageContext.request.contextPath}/StudentServlet?method=findFactoryId">注册</a></li>
				<c:if test="${ not empty student}">
					<li><a href="${pageContext.request.contextPath}/person/personInfo.jsp">我的</a></li>
				</c:if>
			</ul>
		</div>
	</div>
</nav>
<body>
	<div class="wthreeblogsaits">
		<h3>欢迎来到${community.cname}社团</h3>
		<h3 align="center">社团简介</h3>
		<p align="center" style="color: whitesmoke">${community.cintroduce}</p>
	</div>
	<div class="wthreeblogsaits" id="wthreeblogsaits">
		<h3 style="color: whitesmoke;margin-bottom: 5%;">历史活动</h3>
		<div class="wthreeblogsaits-grids">
			<c:if test="${empty as}">
				<h3 style="color: red">还没有举办过任何活动</h3>
			</c:if>
			<c:if test="${not empty as}">
				<c:forEach items="${as}" var="a" varStatus="c">
				<div class="col-md-4 wthreeblogsaits-grid wthreeblogsaits-grid-${c.count}" style="border: 1px solid royalblue">
					<span class="w3date">${a.atime}</span>
					<h4><a href="javascript:void(0)" data-toggle="modal" data-target="#myModal1">${a.aname}</a></h4>
					<p>${a.aintroduce}</p>
				</div>
				</c:forEach>
			</c:if>
			<div class="clearfix"></div>
		</div>
	</div>
    <%--取出图片--%>
	<%
		Community c = (Community) request.getSession().getAttribute("community");
		String imagePath = c.getCimage();
		String[] paths = null;
		if(imagePath != null){
			paths= imagePath.split("&");
		}
		pageContext.setAttribute("paths",paths);
	%>
	<div class="w3portfolioaits" id="w3portfolioaits">
	<h3>社团精彩图片</h3>
		<c:forEach items="${paths}" var="p">
		<div class="w3portfolioaits-items">
			<div class="col-md-3 w3portfolioaits-item w3portfolioaits-item-1" style="margin-left: 100px">
				<a class="example-image-link" href="${pageContext.request.contextPath}/img/${p}" data-lightbox="example-set" data-title="" >
					<div class="grid" >
						<figure class="effect-apollo">
							<img src="${pageContext.request.contextPath}/img/${p}" alt="Gaming World" >
								<figcaption></figcaption>
						</figure>
					</div>
				</a>
			</div>
			</c:forEach>
			<div class="clearfix"></div>
		</div>
	</div>

	<div style="text-align: center;clear: both;color: whitesmoke;">
		<br />
		Copyright © 雪绒花小组
	</div>
</body>
</html>